package com.sven;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

//dubbo中提供的@Service注解发布服务
@Service
public class HelloServiceImpl implements IHelloService{

    @Value("${dubbo.application.name}")
    private String serviceName;

    @Override
    public String sayHello(String name) {
        String str = "*************************service: " + serviceName + ", receive data: " + name;
        System.out.println(str);
        return str;
    }
}
